package com.lin.mapper;

import com.lin.pojo.Dept;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@Mapper
public interface DeptMapper {
    Integer Insert(@RequestBody Dept dept);     //传入一个Dept实体
    Integer DeleteByNo(@RequestBody Integer no);
    Integer UpdateByNo(@RequestBody Dept dept);
    List<Dept> Select_all();
    List<Dept> SelectByNo(Integer pageNum, Integer pageSize,Integer no);

    List<Dept> SelectPage(Integer pageNum, Integer pageSize,String dname, String loc);

    Integer SelectCount(String dname, String loc);

    Integer SelectCountByNo(Integer no);

    Integer Login(String dname,String loc);
}
